<?php

namespace Admin\Controller;
use User\Api\UserApi;

/**
 * 后台用户控制器
 */
class VipController extends AdminController {

	public function _filter(&$sqlWhere){
		
		if(!empty($_GET['keywords'])){
			$sqlWhere['title|content'] = array('like','%' . $_GET['keywords'] . '%');
		}
		return $sqlWhere;
	}
    public function _before_add(){
        $_POST['create_time'] = time();
    }
    public function _before_edit(){
        $_POST['update_time'] = time();
    }

}
